package com.easemob.chat.core;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import com.easemob.chat.EMChat;

final class n
{
  private static final String a = "easemob.sdk.pref";
  private static SharedPreferences b;
  private static SharedPreferences.Editor c;
  private static n d;
  private static String e = "shared_key_ddversion";
  private static String f = "shared_key_ddxml";
  private static String g = "shared_key_ddtime";
  private static String h = "valid_before";

  private n(Context paramContext)
  {
    b = paramContext.getSharedPreferences("easemob.sdk.pref", 0);
    c = b.edit();
  }

  static synchronized n a()
  {
    if (d == null)
      d = new n(EMChat.getInstance().getAppContext());
    return d;
  }

  public void a(String paramString)
  {
    c.putString(e, paramString);
    c.commit();
  }

  public void b(String paramString)
  {
    c.putString(f, paramString);
    c.commit();
  }

  public void a(long paramLong)
  {
    c.putLong(g, paramLong);
    c.commit();
  }

  public void b(long paramLong)
  {
    c.putLong(h, paramLong);
    c.commit();
  }

  public long b()
  {
    return b.getLong(h, -1L);
  }

  public String c()
  {
    return b.getString(e, "");
  }

  public String d()
  {
    return b.getString(f, "");
  }

  public long e()
  {
    return b.getLong(g, -1L);
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.chat.core.n
 * JD-Core Version:    0.6.1
 */